package cn.com.generaldata.jsme_indicator_system.entity;

import java.sql.Timestamp;

import lombok.Data;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * 指标与指标关系实体.
 */
@Data
@Table("t_indicator_relation")
public class IndicatorRelation implements java.io.Serializable {

	private static final long serialVersionUID = 7580967454254136975L;

	// columns START
	/**
	 * PK db_column: id
	 */
	@Id
	@Column("id")
	private Integer id;
	/**
	 * 源指标制度代码
	 */
	@Column("source_indicator_stat_system")
	private Integer sourceIndicatorStatSystem;
	/**
	 * 源指标id
	 */
	@Column("source_indicator_id")
	private Integer sourceIndicatorId;
	/**
	 * 目标指标制度代码
	 */
	@Column("target_indicator_stat_system")
	private Integer targetIndicatorStatSystem;
	/**
	 * 目标指标id
	 */
	@Column("target_indicator_id")
	private Integer targetIndicatorId;
	/**
	 * 指标取值方式 取值:1,汇总:2
	 */
	@Column("get_value_type")
	private Integer getValueType;
	/**
	 * 创建时间 db_column: create_time
	 */
	@Column("create_time")
	@ColDefine(update = false)
	private java.sql.Timestamp createTime = new Timestamp(System.currentTimeMillis());
	/**
	 * 最后修改时间 db_column: last_update
	 */
	@Column("last_update")
	@ColDefine(insert = false, update = false)
	private java.sql.Timestamp lastUpdate;
	// columns END

}
